export interface LoginParamsType {
    userName: string;
    password: string;
    mobile: string;
    captcha: string;
  }

 

  //model / user
import { Effect, Reducer } from 'umi'; 
  export interface CurrentUser {
    avatar?: string;
    name?: string;
    title?: string;
    group?: string;
    signature?: string;
    tags?: {
      key: string;
      label: string;
    }[];
    userid?: string;
    unreadCount?: number;
  }
  
  export interface UserModelState {
    currentUser?: CurrentUser;
  }
  
  export interface UserModelType {
    namespace: 'user';
    state: UserModelState;
    effects: {
      fetch: Effect;
      fetchCurrent: Effect;
    };
    reducers: {
      saveCurrentUser: Reducer<UserModelState>;
      changeNotifyCount: Reducer<UserModelState>;
    };
  }
  //login
  export interface StateType {
    status?: 'ok' | 'error';
    type?: string;
    currentAuthority?: 'user' | 'guest' | 'admin';
  }
  
  export interface LoginModelType {
    namespace: string;
    state: StateType;
    effects: {
      login: Effect;
      logout: Effect;
      CaptchaLogin: Effect;

    };
    reducers: {
      changeLoginStatus: Reducer<StateType>;
    };
  }

  //basic
  export interface BasicModelType {
    namespace: string;
    state: StateType;
    effects: {
      getlist: Effect;

    };
    reducers: {
      changeLoginStatus: Reducer<StateType>;
    };
  }


  //公告
  export interface CreateFormProps {
  modalVisible: boolean;
  onCancel: () => void;
}